package com.cmwa.scbp.sys.msg.dao;

import java.util.List;
import java.util.Map;

import com.cmwa.scbp.base.annotation.MybatisDao;
import com.cmwa.scbp.base.mvc.dao.BaseDao;
import com.cmwa.scbp.base.mvc.entity.SearchParam;
import com.cmwa.scbp.sys.msg.vo.MsgPublicEmailVo;

@MybatisDao
@SuppressWarnings("rawtypes")
public interface IMsgPublicEmailDao extends BaseDao<MsgPublicEmailVo>{
	public List<MsgPublicEmailVo> queryAllPublicEmail();
	public List<MsgPublicEmailVo> queryAllConfPublicEmail();
	public List<MsgPublicEmailVo> queryPublicEmailByConfId(Map map);
	public int deletePublicEmailByConfId(Map map);
	public int insertPublicEmailByConfId(List pubs);
	public List<MsgPublicEmailVo> queryAllPublicEmailByName(SearchParam sp);
	/**
	 * 公邮分页
	 * @param sp
	 * @return
	 */
	public List<MsgPublicEmailVo> publicEmailListPage(SearchParam sp);
	
	/**
	 * 根据id查询单个公邮
	 * @param id
	 * @return
	 */
	public MsgPublicEmailVo queryById(String id);
}
